package cn.yuanqiao.archive.Identify.mapper;

import cn.yuanqiao.archive.Identify.domain.YqMjApprove;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 密级鉴定关联表Mapper接口
 *
 * @ProjectName: ruoyi-modules-system
 * @Package: cn.yuanqiao.archive.Identify.mapper
 * @ClassName: YqMjApproveMapper
 * @Author: lenovo
 * @Description: hbWang
 * @Date: 2023/7/26 14:01
 * @Version: 1.0
 */
public interface YqMjApproveMapper {

    /**
     * 查询密级鉴定关联表
     *
     * @param ID 密级鉴定关联表主键
     * @return 密级鉴定关联表
     */
    public YqMjApprove selectYqMjApproveByID(@Param("ID") String ID , @Param("tableName") String tableName);

    public YqMjApprove selectYqMjApproveByInstanceId(@Param("instanceId") String instanceId , @Param("tableName") String tableName);

    /**
     * 查询密级鉴定关联表列表
     *
     * @param yqMjApprove 密级鉴定关联表
     * @return 密级鉴定关联表集合
     */
    public List<YqMjApprove> selectYqMjApproveList(@Param("yqMjApprove") YqMjApprove yqMjApprove, @Param("tableName") String tableName);

    /**
     * 新增密级鉴定关联表
     *
     * @param item 密级鉴定关联表
     * @return 结果
     */
    public int insertYqMjApprove(@Param("item") YqMjApprove item, @Param("tableName") String tableName);

    /**
     * 修改密级鉴定关联表
     *
     * @param yqMjApprove 密级鉴定关联表
     * @return 结果
     */
    public int updateYqMjApprove(@Param("yqMjApprove") YqMjApprove yqMjApprove, @Param("tableName") String tableName);

    /**
     * 删除密级鉴定关联表
     *
     * @param ID 密级鉴定关联表主键
     * @return 结果
     */
    public int deleteYqMjApproveByID(@Param("ID") String ID , @Param("tableName") String tableName);

    /**
     * 批量删除密级鉴定关联表
     *
     * @param IDs 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteYqMjApproveByIDs(@Param("IDs") String[] IDs, @Param("tableName") String tableName);

    public int updateYqMjApproveState(@Param("ID") String ID, @Param("tableName") String tableName);

}
